//
var EventEmitter = require('events').EventEmitter;
var mixin = require('merge-descriptors');
var proto = require('./application');
var Route = require('./route');



exports = module.exports = createApplication;

function createApplication() {
    var app = function() {
        console.log('--->createApplication.app');
        app.handle();
    };
    mixin(app, EventEmitter.prototype, false);
    mixin(app, proto, false);
    app.init();
    return app;
};


exports.Route = Route;
